<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Form</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <link href="/sap/demo.css" rel="stylesheet" type="text/css" />
    <script src="/sap/scripts/boot.js" type="text/javascript"></script>
</head>
<style>

    td{
        margin-top:10px;

    }
</style>
<body>

<div id="grid1" class="mini-datagrid" style="width:100%;height:550px;"
     url="/SapSupplier/permissionxiaoshoudata/timeTagStart/<?php echo $timeTagStart;?>/timeTagComplete/<?php echo $timeTagComplete;?>" idField="id"
     allowResize="true" showFilterRow="true" pageSize="50"
     allowCellEdit="true" allowCellSelect="true" multiSelect="true"
     editNextOnEnterKey="true">
    <if condition="($userInfo['dept'] eq 'c4ca4238a0b923820dcc509a6f75849b') ">
        <div property="columns">

            <!--<div header="平台代码" field="CardCode" width="80px">-->
                <!--<input id="CardCodeFilter" property="filter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
            <!--</div>-->
            <!--<div header="平台名称" field="CardName"  width="80px">-->
                <!--<input id="CardNameFilter" property="filter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
            <!--</div>-->

            <div header="物料代码" field="ItemCode" width="80px">
                <input id="ItemCodeFilter" property="filter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <div header="物料描述" field="ItemName"  width="80px">
                <input id="ItemNameFilter" property="filter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <div header="颜色" field="Color"  width="200px">
                <input id="ColorFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <div header="型号" field="Model"  width="50px">
                <input id="ModelFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <!--<div header="客户物料号" field="CitemCd"  width="200px">-->
                <!--<input id="CitemCdFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
            <!--</div>-->

            <!--<div header="客户物料名称" field="CitemNm" width="80px">-->
                <!--<input id="CitemNmFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
            <!--</div>-->
            <div header="订单号" field="OrderId"  width="80px">
                <input id="OrderIdFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <div header="数量" field="Qty"  width="200px">
                <input id="QtyFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <div header="单据日期" field="DocDate"  width="50px">
                <input id="DocDateFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <div header="订单时间" field="DocTime"  width="200px">
                <input id="DocTimeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>

            <div header="订单状态" field="OStatus" width="80px">
                <input id="OStatusFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <!--<div header="价格" field="Price"  width="80px">-->
                <!--<input id="PriceFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
            <!--</div>-->
            <div header="总计" field="Total"  width="200px">
                <input id="TotalFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <div header="仓库代码" field="WhsCode"  width="50px">
                <input id="WhsCodeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <div header="仓库名称" field="WhsName"  width="200px">
                <input id="WhsNameFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>

            <!--<div header="手机号码" field="Phone" width="80px">-->
            <!--<input id="PhoneFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
            <!--</div>-->
            <!--<div header="买家姓名" field="Cstname"  width="80px">-->
            <!--<input id="CstnameFilter" class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
            <!--</div>-->
            <!--<div header="收货人姓名" field="Repname"  width="200px">-->
            <!--<input id="RepnameFilter" class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
            <!--</div>-->
            <!--<div header="邮编" field="zipcode"  width="50px">-->
            <!--<input id="zipcodeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
            <!--</div>-->
            <!--<div header="结算价格" field="NoDPrc"  width="200px">-->
                <!--<input id="NoDPrcFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
            <!--</div>-->

            <div header="发票类型" field="InType" width="80px">
                <input id="InTypeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <div header="快递公司" field="ExpCom"  width="80px">
                <input id="ExpComFilter" class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <div header="快递单号" field="ExpNo"  width="200px">
                <input id="ExpNoFilter" class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <div header="快递费" field="ExpCost"  width="50px">
                <input id="ExpCostFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>

            <!--<div header="发票抬头" field="InHead"  width="50px">-->
            <!--<input id="InHeadFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
            <!--</div>-->
            <div header="是否确认收货" field="Conrec"  width="50px">
                <input id="ConrecFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <!--<div header="收货地址" field="Address"  width="50px">-->
            <!--<input id="AddressFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
            <!--</div>-->
            <div header="省" field="State"  width="50px">
                <input id="StateFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <div header="市" field="City"  width="50px">
                <input id="CityFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>

            <div header="县" field="County"  width="50px">
                <input id="CountyFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <!--<div header="实际支付金额" field="GoodsFee"  width="50px">-->
                <!--<input id="GoodsFeeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
            <!--</div>-->
            <!--<div header="其他电话号码" field="OTPhone"  width="50px">-->
            <!--<input id="OTPhoneFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
            <!--</div>-->
            <div header="序列号" field="SerNum"  width="50px">
                <input id="SerNumFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <div header="核重" field="Weight"  width="50px">
                <input id="WeightFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>

            <div header="是否代发" field="Replac"  width="50px">
                <input id="ReplacFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <div header="产品经理" field="PManager"  width="50px">
                <input id="PManagerFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <div header="3C非3C产品" field="Is3C"  width="50px">
                <input id="Is3CFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <div header="物料采购价格" field="PurPrice"  width="50px">
                <input id="PurPriceFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
            </div>
            <!--<div header="手续费暂估" field="charge"  width="50px">-->
                <!--<input id="chargeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
            <!--</div>-->

        </div>

        <else />

        <if condition="($userInfo['dept'] eq 'c81e728d9d4c2f636f067f89cc14862c') ">
            <div property="columns">

                <div header="平台代码" field="CardCode" width="80px">
                    <input id="CardCodeFilter" property="filter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="平台名称" field="CardName"  width="80px">
                    <input id="CardNameFilter" property="filter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

                <div header="物料代码" field="ItemCode" width="80px">
                    <input id="ItemCodeFilter" property="filter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="物料描述" field="ItemName"  width="80px">
                    <input id="ItemNameFilter" property="filter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="颜色" field="Color"  width="200px">
                    <input id="ColorFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="型号" field="Model"  width="50px">
                    <input id="ModelFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="客户物料号" field="CitemCd"  width="200px">
                    <input id="CitemCdFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

                <div header="客户物料名称" field="CitemNm" width="80px">
                    <input id="CitemNmFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="订单号" field="OrderId"  width="80px">
                    <input id="OrderIdFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="数量" field="Qty"  width="200px">
                    <input id="QtyFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="单据日期" field="DocDate"  width="50px">
                    <input id="DocDateFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="订单时间" field="DocTime"  width="200px">
                    <input id="DocTimeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

                <div header="订单状态" field="OStatus" width="80px">
                    <input id="OStatusFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="价格" field="Price"  width="80px">
                    <input id="PriceFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="总计" field="Total"  width="200px">
                    <input id="TotalFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="仓库代码" field="WhsCode"  width="50px">
                    <input id="WhsCodeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="仓库名称" field="WhsName"  width="200px">
                    <input id="WhsNameFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

                <!--<div header="手机号码" field="Phone" width="80px">-->
                <!--<input id="PhoneFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
                <!--</div>-->
                <!--<div header="买家姓名" field="Cstname"  width="80px">-->
                <!--<input id="CstnameFilter" class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
                <!--</div>-->
                <!--<div header="收货人姓名" field="Repname"  width="200px">-->
                <!--<input id="RepnameFilter" class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
                <!--</div>-->
                <!--<div header="邮编" field="zipcode"  width="50px">-->
                <!--<input id="zipcodeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
                <!--</div>-->
                <div header="结算价格" field="NoDPrc"  width="200px">
                    <input id="NoDPrcFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

                <div header="发票类型" field="InType" width="80px">
                    <input id="InTypeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="快递公司" field="ExpCom"  width="80px">
                    <input id="ExpComFilter" class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="快递单号" field="ExpNo"  width="200px">
                    <input id="ExpNoFilter" class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="快递费" field="ExpCost"  width="50px">
                    <input id="ExpCostFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

                <!--<div header="发票抬头" field="InHead"  width="50px">-->
                <!--<input id="InHeadFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
                <!--</div>-->
                <div header="是否确认收货" field="Conrec"  width="50px">
                    <input id="ConrecFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <!--<div header="收货地址" field="Address"  width="50px">-->
                <!--<input id="AddressFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
                <!--</div>-->
                <div header="省" field="State"  width="50px">
                    <input id="StateFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="市" field="City"  width="50px">
                    <input id="CityFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

                <div header="县" field="County"  width="50px">
                    <input id="CountyFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="实际支付金额" field="GoodsFee"  width="50px">
                    <input id="GoodsFeeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <!--<div header="其他电话号码" field="OTPhone"  width="50px">-->
                <!--<input id="OTPhoneFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
                <!--</div>-->
                <div header="序列号" field="SerNum"  width="50px">
                    <input id="SerNumFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="核重" field="Weight"  width="50px">
                    <input id="WeightFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

                <div header="是否代发" field="Replac"  width="50px">
                    <input id="ReplacFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="产品经理" field="PManager"  width="50px">
                    <input id="PManagerFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="3C非3C产品" field="Is3C"  width="50px">
                    <input id="Is3CFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <!--<div header="物料采购价格" field="PurPrice"  width="50px">-->
                    <!--<input id="PurPriceFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
                <!--</div>-->
                <div header="手续费暂估" field="charge"  width="50px">
                    <input id="chargeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

            </div>
            <else/>
            <div property="columns">

                <div header="平台代码" field="CardCode" width="80px">
                    <input id="CardCodeFilter" property="filter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="平台名称" field="CardName"  width="80px">
                    <input id="CardNameFilter" property="filter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

                <div header="物料代码" field="ItemCode" width="80px">
                    <input id="ItemCodeFilter" property="filter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="物料描述" field="ItemName"  width="80px">
                    <input id="ItemNameFilter" property="filter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="颜色" field="Color"  width="200px">
                    <input id="ColorFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="型号" field="Model"  width="50px">
                    <input id="ModelFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="客户物料号" field="CitemCd"  width="200px">
                    <input id="CitemCdFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

                <div header="客户物料名称" field="CitemNm" width="80px">
                    <input id="CitemNmFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="订单号" field="OrderId"  width="80px">
                    <input id="OrderIdFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="数量" field="Qty"  width="200px">
                    <input id="QtyFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="单据日期" field="DocDate"  width="50px">
                    <input id="DocDateFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="订单时间" field="DocTime"  width="200px">
                    <input id="DocTimeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

                <div header="订单状态" field="OStatus" width="80px">
                    <input id="OStatusFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="价格" field="Price"  width="80px">
                    <input id="PriceFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="总计" field="Total"  width="200px">
                    <input id="TotalFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="仓库代码" field="WhsCode"  width="50px">
                    <input id="WhsCodeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="仓库名称" field="WhsName"  width="200px">
                    <input id="WhsNameFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

                <!--<div header="手机号码" field="Phone" width="80px">-->
                <!--<input id="PhoneFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
                <!--</div>-->
                <!--<div header="买家姓名" field="Cstname"  width="80px">-->
                <!--<input id="CstnameFilter" class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
                <!--</div>-->
                <!--<div header="收货人姓名" field="Repname"  width="200px">-->
                <!--<input id="RepnameFilter" class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
                <!--</div>-->
                <!--<div header="邮编" field="zipcode"  width="50px">-->
                <!--<input id="zipcodeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
                <!--</div>-->
                <div header="结算价格" field="NoDPrc"  width="200px">
                    <input id="NoDPrcFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

                <div header="发票类型" field="InType" width="80px">
                    <input id="InTypeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="快递公司" field="ExpCom"  width="80px">
                    <input id="ExpComFilter" class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="快递单号" field="ExpNo"  width="200px">
                    <input id="ExpNoFilter" class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="快递费" field="ExpCost"  width="50px">
                    <input id="ExpCostFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

                <!--<div header="发票抬头" field="InHead"  width="50px">-->
                <!--<input id="InHeadFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
                <!--</div>-->
                <div header="是否确认收货" field="Conrec"  width="50px">
                    <input id="ConrecFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <!--<div header="收货地址" field="Address"  width="50px">-->
                <!--<input id="AddressFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
                <!--</div>-->
                <div header="省" field="State"  width="50px">
                    <input id="StateFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="市" field="City"  width="50px">
                    <input id="CityFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

                <div header="县" field="County"  width="50px">
                    <input id="CountyFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="实际支付金额" field="GoodsFee"  width="50px">
                    <input id="GoodsFeeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <!--<div header="其他电话号码" field="OTPhone"  width="50px">-->
                <!--<input id="OTPhoneFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>-->
                <!--</div>-->
                <div header="序列号" field="SerNum"  width="50px">
                    <input id="SerNumFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="核重" field="Weight"  width="50px">
                    <input id="WeightFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

                <div header="是否代发" field="Replac"  width="50px">
                    <input id="ReplacFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="产品经理" field="PManager"  width="50px">
                    <input id="PManagerFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="3C非3C产品" field="Is3C"  width="50px">
                    <input id="Is3CFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="物料采购价格" field="PurPrice"  width="50px">
                    <input id="PurPriceFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>
                <div header="手续费暂估" field="charge"  width="50px">
                    <input id="chargeFilter"  class="mini-textbox" style="width:100%;" onvaluechanged="onFilterChanged"/>
                </div>

            </div>
        </if>

    </if>



</div>

<script type="text/javascript">
    mini.parse();
    var grid1 = mini.get("grid1");
    grid1.load();

    //绘制表格
    grid1.on("drawcell", function (e) {

        var record = e.record,
            column = e.column,
            field = e.field,
            value = e.value;

        //格式化日期
        if (field == "DocDate" || field == "DocTime" ) {
            if (mini.isDate(value)) e.cellHtml = mini.formatDate(value, "yyyy-MM-dd HH:mm:ss");
        }

    });

</script>

<script type="text/javascript">

    function onFilterChanged(e) {

        var CardCodeBox = mini.get("CardCodeFilter");
        var CardNameBox = mini.get("CardNameFilter");

        var CardCode = CardCodeBox.getValue().toLowerCase();
        var CardName = CardNameBox.getValue().toLowerCase();

        //多条件组合过滤
        grid1.filter(function (row) {

            var r_CardCode = true;
            if (CardCode) {
                r_CardCode = String(row.CardCode).toLowerCase().indexOf(CardCode) != -1;
            }

            var r_CardName = true;
            if (CardName) {
                r_CardName = String(row.CardName).toLowerCase().indexOf(CardName) != -1;
            }

            return r_CardCode && r_CardName;
        });
    }

</script>

</body>
</html>